<?php

declare(strict_types=1);

namespace IdaasClient\Middleware;

use Grpc\Mall\Product\V1\GetNamespaceRequest;
use Grpc\Mall\Product\V1\PBNamespace;
use Grpc\Mall\Product\V1\ProductClient;
use Hyperf\Grpc\StatusCode;
use Hyperf\GrpcClient\Exception\GrpcClientException;
use Hyperf\GrpcServer\Exception\GrpcException;
use IdaasClient\Constants\IdaasConst;
use Psr\Http\Message\ServerRequestInterface;
use Hyperf\Cache\Annotation\Cacheable;

class PartnerSiteNamespaceMiddleware extends AuthMiddleware
{
    protected ?bool $enable = true;
    protected ?string $instance = 'default';
    protected ?string $project = 'partner';
    protected ?array $resources = ['partner_id', 'site_id', 'namespace'];
    protected ?array $allowUserTypes = [IdaasConst::USERR_TYPE_COMM];
}
